package com.vpen.spel.demo.config;

import com.vpen.spel.demo.annotation.SpelTest;
import com.vpen.spel.demo.entity.Demo;
import org.springframework.stereotype.Component;

/**
 * 描述
 *
 * @author 韦鹏
 * @date 2022/8/17 17:44
 */
@Component
public class DemoConfig {

    @SpelTest(params = {"#name"})
    public String updateName(String name) {
        return name;
    }


    @SpelTest(params = {"#demo.name", "#demo.age", "#demo.sb"})
    public Demo updateName(Demo demo) {
        return demo;
    }
}
